<?php
require_once '../../classes/includeAll_Layer2.php';

//$sessionId = 5; //debug
//$isAdmin=true;

require '../../resources/getConnection.php';


$deviceID = filter_input(INPUT_POST,"deviceID");		
$additionID = filter_input(INPUT_POST,"additionID");


if($deviceID == null || $deviceID == false || $additionID == null || $additionID == false|| !$isAdmin)
{
  echo "false";
  exit();
}
	
$device = new Device($deviceID, $connection);

if($device->DeletAddition($additionID))
  echo "true";
else
  echo "false";